package sonoCommunity.dao;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import sonoCommunity.domain.Post;


@Repository
@Transactional
public class PostDao {

	@PersistenceContext
	EntityManager em;
	
	public void addNewpost (Post post){
		em.persist(post);
	}

	
}
